var tpl = require('../../views/create');
var layer = require('layer');
var quit = require('{pub}/quit');
var router = require('{com}/router');
var editform = require('../list/editform');

return {
    path:'/create/',
    template:tpl,
    events:{
        'click .j-quit':quit,
        'click .j-back':'back'
    },
    onInit:function(){
        editform(this.element)
    },
    back:function(){
        router.location('/list/')
    }
}